package cn.supermarket.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.annotation.Nullable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class RefundAddNew implements Serializable {

    /**
     * 退款原因
     */
    @NotNull
    @NotEmpty
    @ApiModelProperty(value = "退款原因",example = "买错了")
    private String reason;

    /**
     * 订单号
     */
    @NotNull
    @NotEmpty
    private String orderNumber;

    /**
     * 退款人
     */
    @NotNull
    @NotEmpty
    @ApiModelProperty(value = "退款人",example = "张三")
    @NotNull
    private String supplier;

    /**
     * 收款人
     */
    @NotNull
    @NotEmpty
    @ApiModelProperty(value = "收款人",example = "李驷")
    private String collect;

    /**
     * 退款方式
     */
    @NotNull
    @NotEmpty
    @ApiModelProperty(value = "退款方式",example = "银行转账")
    private String refundType;

    /**
     * 开户行
     */
    @NotNull
    @NotEmpty
    @ApiModelProperty(value = "开户行",example = "建设银行")
    private String bank;

    /**
     * 银行账号
     */
    @NotNull
    @NotEmpty
    @ApiModelProperty(value = "银行账户",example = "xxx xxx xxx xxx")
    private String bankNumber;

    /**
     * 退款金额
     */
    @NotNull
    @NotEmpty
    @ApiModelProperty(value = "退款金额",example = "50000")
    private BigDecimal money;

    /**
     * 扫描件
     */
    @ApiModelProperty(value = "扫描件",example = "无")
    private String scanningCopy;
    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人",example = "王五")
    private String handler;



}
